package com.mgface.springcloud.feign;

import feign.hystrix.FallbackFactory;

/**
 * @author wanyuxiang
 * @version 1.0
 * @project springcloudCollection
 * @create 2018-08-16 11:27
 **/
//@Component
public class ServerFeignFallbackFactory implements FallbackFactory<ServerFeign> {
    @Override
    public ServerFeign create(Throwable throwable) {
        return e-> "trigger feign fallback";
    }
}
